#ifndef MYLABEL_H
#define MYLABEL_H

#include <QLabel>

class myLabel : public QLabel
{
    Q_OBJECT
public:
    explicit myLabel(QWidget *parent = 0);

    void enterEvent(QEvent *event); //实现 鼠标进入事件

    void leaveEvent(QEvent *); //实现 鼠标离开事件

    virtual void mousePressEvent(QMouseEvent *ev); //实现 鼠标按下

    virtual void mouseReleaseEvent(QMouseEvent *ev); //实现 鼠标释放

    virtual void  mouseMoveEvent(QMouseEvent *ev); //实现 鼠标移动

    bool event(QEvent *e); //通过event事件分发器 拦截 鼠标按下事件


signals:

public slots:
};

#endif // MYLABEL_H
